package com.ponhu.ea2.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
@ApiModel(value = "属性-数据传输模型VO")
public class PhPropertyEditVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "是否有该属性")
    private boolean checked;

    @ApiModelProperty(value = "属性ID")
    private Long id;

    @ApiModelProperty(value = "属性名称")
    private String name;

    @ApiModelProperty(value = "是否必填：1是，2否")
    private Integer isRequired;

    @ApiModelProperty(value = "录入方式：1单行文本框，2下拉单选，3单选，4复选，5多行文本框， 6下拉多选")
    private Integer inputMethod;

    @ApiModelProperty(value = "属性值选项集合")
    private List<PhPropValueEditVo> valueList;

    @ApiModelProperty(value = "文本值(属性类型非文本框时忽略)")
    private String text;

    @ApiModelProperty(value = "文本框提示文案（灰色）：单位、规格等")
    private String textPrompt;

    @ApiModelProperty(value = "后缀提示文案")
    private String suffixPrompt;

    @ApiModelProperty(value = "胖总管属性名称")
    private String ponhuName;

}
